//日本
//令和多喜屋  只有一个价格
  // var moneyicon = 'USD$';
  // var _api_root = 'https://www.tokyolifehouse.com/portal/';
  // var appid = 'wx74c7cd5caeab9f0c';

//美国
// 东京生活馆药妆  两个价格
 var moneyicon = 'JPY￥';
 var moneyiconOther = '￡';
// var _api_root = 'https://www.rikurikutokyo.com/portal/';
// var _api_root ='https://www.tokyolifestyle.com/portal/'
var _api_root ='https://ca.yinshilove.com/portal/'
var appid = 'wx4c6df2350071af70';

var api = {
  _api_root: _api_root,
  MONEYICON: moneyicon,//只有这1个地方！！！//￡
  MONEYICONOTHER: moneyiconOther,//只有这1个地方！！！//￡
  APPID:appid,
    default: {
      getAdvertiseRelatedProducts:_api_root+'home/advertise/relation/',//{aid}//获取banner的关联商品列表
      getPromotionRelatedIds:_api_root+'home/promotion/',//{pid}获取活动专题的关联商品列表的 ids
      getResourceRealtedProducts:_api_root+'home/resource/relation/',//{rid}//获取资源的关联商品列表
      getHomeBtmList:_api_root+'product/list',//首页最底部，商品列表
      getVirtualList: _api_root + 'product/virtual/list',//获取虚拟商品列表，，运费
      getHomePop: _api_root+'home/activityFrame/list',
      getPopDetail:_api_root+'home/activityFrame/detail/',
      homeDepotList:_api_root + 'home/depot/list',
      homeContent: _api_root + 'home/content',
      getBlockDetail:_api_root+'home/recommend/block/',
      getPromotionDetail:_api_root+ 'home/promotion/detail/',
      goodsDetail: _api_root + 'product/queryProductDetail/',
      getDepotDetail:_api_root+'product/depot/sku/info/',
      getAttrDetail: _api_root + 'product/sku/info',
      getHotProductList: _api_root + 'home/hotProduct/list',
      getNewProductList: _api_root + 'home/newProduct/list',
      getFlashList: _api_root + 'home/flashProduct/list/',
      getoptimizationList: _api_root + 'home/optimizationProduct/list',
      getBrandList: _api_root + 'home/brand/list',
      getBrandDetail: _api_root +'home/brand/',
      img_server: 'http://192.168.1.10:2020',
        store: _api_root + 'default/store',
        index: _api_root + 'applet/index',
      goods_list: _api_root + 'product/queryProductCategoryList/',
      recommend_list: _api_root + 'product/list/',
      search_goods_list: _api_root +'/product/queryProduct/list',
        cat_list: _api_root + 'product/listWithChildren',
        goods: _api_root + 'pms/product/queryProductDetail',
        goods_attr_info: _api_root + "home/attr/list",
        upload_image: _api_root + "oss/upload/img",
        comment_list: _api_root + "pms/consult/list",
        article_list: _api_root + "default/article-list",
        article_detail: _api_root + "default/article-detail",
        video_list: _api_root + "default/video-list",
        goods_qrcode: _api_root + "default/goods-qrcode",
        //coupon_list: _api_root + "member/coupon/alllist",
      coupon_list: _api_root + "coupon/list",
        topic_list: _api_root + "home/subjectList",
        topic: _api_root + "home/subjectDetail",
    },
    cart: {
        list: _api_root + 'cart/list',
        add_cart: _api_root + 'cart/add',
        delete: _api_root + 'cart/delete/',
        queryNum: _api_root +'cart/update/quantity',
        getTotalPrice:_api_root+'cart/caculate',//获取购物车勾选的商品总价
    },
    passport: {
        //login: _api_root + 'applet/login_by_weixin',
      login: _api_root + 'sso/wx/'+appid+'/login',
        on_login: _api_root + 'passport/on-login',
    },
    order: {
      getExpressDetail:_api_root+'order/delivery/',//获取物流详情
      payOrderDetail: _api_root +'order/pay',//立即支付，，在订单详情页调用
      cancleOrder:_api_root+'order/cancel/',//{orderId}取消订单
      confirmProduct:_api_root+'order/confirm/',//{orderId}确认收货 
      pay_success: _api_root +'order/test/paySuccess/',//支付成功的回调
      refund: _api_root + 'returnApply/create',
        generateConfirmOrder:_api_root+'order/generateConfirmOrder',
        submit_preview: _api_root + 'order/submitPreview',
        //pay_success: _api_root +'order/paySuccess/',
        submit: _api_root + 'order/generateOrder',
        pay_data: _api_root + 'pay/prepay',
        list: _api_root + 'order/list',
        revoke: _api_root + 'order/revoke',
        confirm: _api_root + 'order/confirm',
        count_data: _api_root + 'order/count-data',
        detail: _api_root + 'order/detail',
        refund_preview: _api_root + 'order/refund-preview',
        refund_detail: _api_root + 'order/refund-detail',
        comment_preview: _api_root + 'order/comment-preview',
        comment: _api_root + 'order/comment',
        express_detail: _api_root + 'order/express-detail',
        clerk: _api_root + "order/clerk",
        clerk_detail: _api_root + 'order/clerk-detail',
        get_qrcode: _api_root + 'order/get-qrcode',
    },
    user: {
      isPermitSubmit:_api_root+'member/distributor/bonus/reflect',//是否允许当前经销商提现
      getSalesmanMoney:_api_root+'member/distributor/bonus/info',//获取经销商分润基本信息
      getSalesmanList:_api_root+'member/distributor/bonus/status/list',//获取经销商分润--待分红的订单列表
      getBonusList:_api_root+'member/distributor/bonus/list',//经销商的分红列表
      getUserInfo: _api_root + 'address/list',
      saveUserInfo: _api_root + 'member/wx/' + appid +'/info',
      getMemberInfo: _api_root +'member/info',
      checkUserId:_api_root+'member/distributor/info',
      bindSalesInfo:_api_root+'member/distributor/bind/',
      getNewuserCoupon:_api_root+'coupon/user/register',//获取新用户专享优惠券
      getOnlyData:_api_root+'home/subject/list',//新人专享低价，新人右上角的承接页
      address_list: _api_root + 'member/address/list',
      address_detail: _api_root + 'member/address/',
      address_save: _api_root + 'member/address/add',
      address_update: _api_root + 'member/address/update/',
      address_set_default: _api_root + 'member/address/setDefault/',
      address_delete: _api_root + 'member/address/delete/',
      save_form_id: _api_root + "collection/save-form-id",
      //favorite_add: _api_root + "collection/favorite-add",
      favorite_add: _api_root + "member/collection/addProduct",
        //favorite_remove: _api_root + "collection/favorite-remove",
      favorite_remove: _api_root + "member/collection/deleteProduct",
        //favorite_list: _api_root + "collection/listCollect",
      favorite_list: _api_root + "member/collection/listProduct",
        index: _api_root + "applet/user",
        wechat_district: _api_root + "user/wechat-district",
        add_wechat_address: _api_root + "user/add-wechat-address",
        topic_favorite: _api_root + "collection/topic-favorite",
        topic_favorite_list: _api_root + "collection/topic-listCollect",
    },
    share: {
      getShareQrcode: _api_root + 'member/member/qrcode',
      join: _api_root + 'share/join',
      check: _api_root + 'share/check',
      get_info: _api_root + 'share/get-info',
      get_price: _api_root + 'share/get-price',
      apply: _api_root + 'share/apply',
      cash_detail: _api_root + 'share/cash-detail',
      get_qrcode: _api_root + 'share/get-qrcode',
      shop_share: _api_root + 'share/shop-share',
      bind_parent: _api_root + 'share/bind-parent',
      get_team: _api_root + 'share/get-team',
      get_order: _api_root + 'share/get-order',
    },
    coupon: {
        index: _api_root + 'member/coupon/list',
        share_send: _api_root + 'coupon/share-send',
        receive: _api_root + 'member/coupon/receive',
    },
};
module.exports = api;